package com.yijiaw.dao;

import com.yijiaw.domain.Parttype;

import java.util.Set;

import org.skyway.spring.util.dao.JpaDao;

import org.springframework.dao.DataAccessException;

/**
 * DAO to manage Parttype entities.
 * 
 */
public interface ParttypeDAO extends JpaDao<Parttype> {

	/**
	 * JPQL Query - findParttypeByName
	 *
	 */
	public Set<Parttype> findParttypeByName(String name) throws DataAccessException;

	/**
	 * JPQL Query - findParttypeByName
	 *
	 */
	public Set<Parttype> findParttypeByName(String name, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findParttypeById
	 *
	 */
	public Parttype findParttypeById(Integer id) throws DataAccessException;

	/**
	 * JPQL Query - findParttypeById
	 *
	 */
	public Parttype findParttypeById(Integer id, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findParttypeByNameContaining
	 *
	 */
	public Set<Parttype> findParttypeByNameContaining(String name_1) throws DataAccessException;

	/**
	 * JPQL Query - findParttypeByNameContaining
	 *
	 */
	public Set<Parttype> findParttypeByNameContaining(String name_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findParttypeByPrimaryKey
	 *
	 */
	public Parttype findParttypeByPrimaryKey(Integer id_1) throws DataAccessException;

	/**
	 * JPQL Query - findParttypeByPrimaryKey
	 *
	 */
	public Parttype findParttypeByPrimaryKey(Integer id_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findAllParttypes
	 *
	 */
	public Set<Parttype> findAllParttypes() throws DataAccessException;

	/**
	 * JPQL Query - findAllParttypes
	 *
	 */
	public Set<Parttype> findAllParttypes(int startResult, int maxRows) throws DataAccessException;

}